<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box{
            width: 100%;
            height: 800px;
            /* 图片地址 */
            background-image: url(./file//goods_avatar_1.png);
            /* 图片的尺寸 */
            /* background-size:100px; 宽高*/
            /* 设置2个宽和高 */
            background-size: 100% 100%;
            /* 位置 */
            background-position: center;
            /* 是否平铺 */
            background-repeat: no-repeat;
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>